package uba.ing2.subite.demo;

import java.util.Date;

import uba.ing2.subite.domain.LegalEntity;
import uba.ing2.subite.domain.PaidInvoice;
import uba.ing2.subite.domain.PaymentCard;
import uba.ing2.subite.domain.PaymentTerminal;

public class PaidInvoiceView {	
	private Date paymentDate;
	private PaymentTerminal paymentTerminal;
	private PaymentCard paymentCard;
	private String shortDescription;
	private Number total;
	private LegalEntity legalEntity;

	public Number getTotal() {
		return total;
	}

	public PaidInvoiceView(PaidInvoice paidInvoice) {
		this.paymentDate = paidInvoice.paymentDate();
		this.paymentTerminal = paidInvoice.paymentTerminal();
		this.paymentCard = paidInvoice.paymentCard();
		this.shortDescription = paidInvoice.shortDescription();
		this.total = paidInvoice.total();
		this.legalEntity = paidInvoice.paymentTerminal().legalEntity();
	}
	
	public LegalEntity getLegalEntity() {
		return legalEntity;
	}

	public Date getPaymentDate() {
		return paymentDate;
	}

	public PaymentTerminal getPaymentTerminal() {
		return paymentTerminal;
	}

	public PaymentCard getPaymentCard() {
		return paymentCard;
	}

	public String getShortDescription() {
		return shortDescription;
	}
}
